package org.wanda.pv.model.hy;

 import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
 import org.wanda.pv.framework.base.BaseModel;

 import java.io.Serializable;
import java.util.List;

@Table("hy_tree")
public class HyTree extends BaseModel implements Serializable {

    @Column
    @Name
    private String id;

    @Column("parent_id")
    private String parentId;
    @Column
    private String name;
    @Column
    private String type;
    @Column
    private String sort;
    @Column
    private String templateId;
    private List<HyTree> children;
    @Column
    private Integer opinionCount;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public List<HyTree> getChildren() {
        return children;
    }

    public void setChildren(List<HyTree> children) {
        this.children = children;
    }

    public Integer getOpinionCount() {
        return opinionCount;
    }

    public void setOpinionCount(Integer opinionCount) {
        this.opinionCount = opinionCount;
    }
}
